import { MenuConfig, MenuType } from './declare'

export default function menuList(): MenuConfig[] {
  return [
    {
      type: MenuType.DROPLIST,
      options: [
        ['h1', '标题一'],
        ['h2', '标题二'],
        ['h3', '标题三'],
        ['h4', '标题四'],
        ['h5', '标题五'],
        ['h6', '标题六'],
        ['p', '正文'],
      ],
    },
    {
      type: MenuType.DELIMITER,
    },
    {
      type: MenuType.SELECTION,
      command: 'size',
      options: ['10px', '11px', '12px', '13px', '14px', '15px', '16px', '18px', '20px', '22px', '24px'],
    },
    {
      type: MenuType.DELIMITER,
    },
    {
      type: MenuType.BUTTON,
      command: 'bold',
    },
    {
      type: MenuType.BUTTON,
      command: 'italic',
    },
    {
      type: MenuType.BUTTON,
      command: 'underline',
    },
    {
      type: MenuType.BUTTON,
      command: 'through',
    },
    {
      type: MenuType.DELIMITER,
    },
    {
      type: MenuType.DROPLIST,
      options: [
        ['alignLeft', '居左对齐'],
        ['alignCenter', '居中对齐'],
        ['alignRight', '居右对齐'],
        ['alignJustify', '两端对齐'],
      ],
    },
    {
      type: MenuType.SELECTION,
      command: 'lineHeight',
      options: ['1', '1.15', '1.25', '1.5', '2', '2.5'],
      icon: true,
    },
    {
      type: MenuType.DELIMITER,
    },
    {
      type: MenuType.BUTTON,
      command: 'image',
    },
    {
      type: MenuType.BUTTON,
      command: 'audio',
    },
    {
      type: MenuType.BUTTON,
      command: 'video',
    },
    {
      type: MenuType.BUTTON,
      command: 'album',
    },
    {
      type: MenuType.DELIMITER,
    },
    {
      type: MenuType.BUTTON,
      command: 'config',
    },
  ]
}
